﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XCSerialPort
{
    public static class NavigationService
    {
        /// <summary>
        /// 全局调用串口的接口
        /// </summary>
        private static ISerialPortManager _serialPort;

        public static void Initialize(ISerialPortManager serialPort)
        {
            _serialPort = serialPort;
        }

        public static ISerialPortManager GetSerialPort()
        {
            return _serialPort;
        }
    }
}
